package cn.com.blackboard.DataModule4B2.util;

public class BatchResultModel {
	private String modelClsName;
	private String modelClsAttr;
	private String value;
	private Status status;
	
	public String getModelClsName() {
		return modelClsName;
	}

	public void setModelClsName(String modelClsName) {
		this.modelClsName = modelClsName;
	}

	public String getModelClsAttr() {
		return modelClsAttr;
	}

	public void setModelClsAttr(String modelClsAttr) {
		this.modelClsAttr = modelClsAttr;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public static enum Status {
		ImportSuccess("ImportSuccess"),
		ImportFailed("ImportFailed"),
		UpdateSuccess("UpdateSuccess"),
		UpdateFailed("UpdateFailed"),
		SubRelationFailed("SubRelationFailed"),
		LoadFailed("LoadFailed"),
		PortalSuccessButCatalogFailed("PortalSuccessButCatalogFailed"),
		regisitFailed("regisitFailed");
		
		private String value;
		private Status(String value){
			this.value = value;
		}
		public String getValue(){
			return this.value;
		}
		public boolean isSuccess(){
			return this.value.endsWith("Success");
		}
	}
}
